@import './variables.scss';
@import './mixin.scss';
// @import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './cms-base.scss';
@import '../assets//css/font.css';
$--color-primary: #409EFF;
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}
ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
p{
  margin: 0;
}
#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.hidden{
  display: none;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 15px 15px 9px;
}
.app-container__right{
  margin-left: 5px;
}
.app-footer{
  color: #aeb5c3;
  font-size: 14px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-top: 1px solid #D9DDE4;
}
.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  // padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

/*样式覆盖*/
#app{
  overflow: hidden;
}

//左右弹性布局
.h-flex {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
}

.h-flex > .h-flex-fixed {
  flex-grow: 0;
  flex-shrink: 0;
}

.h-flex > .h-flex-elastic {
  flex-grow: 1;
  flex-shrink: 1;
}

//上下弹性布局
.v-flex {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.v-flex > .v-flex-fixed {
  flex-grow: 0;
  flex-shrink: 0;
}

.v-flex > .v-flex-elastic {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  height: 0;
}

.query-condition{
   min-width: 700px;
  .el-form-item{
    display: inline-block;
    vertical-align: middle;
  }
  .query-button{
    float: right;
  }
  .el-form--label-left .el-form-item__label{
    line-height: 18px;
    align-items: center;
    display: flex;
    justify-content: flex-end;
    align-content: center;
    height: 36px;
    text-align: right;
  }
  .el-button.filter-item{
    // margin-bottom: 0;
    border-bottom: 0 !important;
  }
}

.select-tree-box{
  display: flex;
}

.el-dialog__wrapper{
  text-align: center;
  &::after{
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
  }
}
.el-dialog{
  text-align: left;
  display: inline-block;
  vertical-align: middle;
  min-width: 700px;
  margin-top: 0 !important;
  .el-dialog__header{
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
    background: #409EFF;
    border-bottom: 1px solid #D9DDE4;
    .el-dialog__title{
      font-size: 16px;
      color: #fff;
    }
    .el-dialog__headerbtn{
      top: 10px;
      font-size: 20px;
      .el-dialog__close{
        color: #fff;
      }
      &:focus,
      &:hover{
        .el-dialog__close{
          color: #d0c0c0;
        }
      }
    }
  }
  .el-dialog__body{
    padding: 30px 0 0;
    max-height: calc(80vh - 100px);
    overflow: auto;
    .el-transfer-panel__item{
      text-align: left;
    }
    .el-form{
      padding: 0 30px;
      .el-form-item__label{
        font-weight: normal;
      }
      .el-form-item,
      .el-row,
      .el-select--medium,
      .el-date-editor{
        width: 100%;
      }
      .label-more-line {
        display: inline-block;
        line-height: 16px;
        vertical-align: middle;
      }
    }
    .el-tree{
      background: none;
    }
    .el-tabs--card{
      margin-top: -15px;
      .el-tabs__header{
        text-align: center;
        border: 0;
        .el-tabs__nav-wrap{
          display: inline-block;
          .el-tabs__item{
            border-bottom: 1px solid #dfe4ed;
            &.is-active{
              background: $--color-primary;
              color: #fff !important;
            }
          }
        }
      }
    }
  }
  .el-dialog__footer{
    padding: 10px 30px 20px;
    .el-button{
      width: 80px;
      padding: 7px 15px;
      border: 0;
      border-radius: 3px;
    }
    .el-button--default{
      color: #fff;
      margin-left: 22px;
      background: #a5aec3;
      &:hover,
      &:focus,
      &:active{
        color: #fff;
        background:  #9da4b5;
      }
    }
  }
}

.query-condition{
  .el-input__inner,
  .el-form-item__content,
  .el-input__icon,
  .el-input--suffix .el-input__inner,
  .el-form-item--medium .el-form-item__content,
  .el-form-item__label{
    line-height: 28px;
    height: 28px;
  }
  .el-form-item{
    margin-bottom: 10px;
  }
}

.el-input__inner{
  border-radius: 2px;
}

.el-tree{
  .el-tree-node {
    .el-tree-node__content{
      height: 28px;
      .expanded.el-icon-arrow-right{
        color: #060606;
      }
      // .el-tree-node__expand-icon{
      //   padding: 9px;
      //   margin-right: 3px;
      //   background: url(../assets/images/tree-node-expand-icon.png) center/contain no-repeat;
      //   &::before{
      //     display: none;
      //   }
      //   &.expanded{
      //     transform: none;
      //     background: url(../assets/images/tree-node-icon.png) center/contain no-repeat;
      //   }
      //   &.is-leaf{
      //     background: url(../assets/images/tree-node-leaf-icon.png) center/contain no-repeat;
      //   }
      // }
    }
    &.is-current > .el-tree-node__content{
      color: $--color-primary;
      // .el-tree-node__expand-icon{
      //   &.is-leaf{
      //     background: url(../assets/images/tree-node-leaf__active-icon.png) center/contain no-repeat;
      //   }
      // }
    }
  }
}

.el-pagination__sizes .el-input .el-input__inner:hover,
.el-input__inner:focus,
.el-select .el-input__inner:focus,
.el-select .el-input.is-focus .el-input__inner{
  border-color: $--color-primary;
}

.el-pagination.is-background .el-pager li:not(.disabled).active{
// .el-select-dropdown__item.selected{
  color: #ffffff;
}

.el-select-dropdown__item.selected.hover{
  color: $--color-primary !important;
}

// .el-pagination.is-background .el-pager li:not(.disabled):hover,
.el-breadcrumb__separator{
  color: $--color-primary !important;
}

.el-message {
  min-width: 300px;
  width: 300px;
  position: fixed;
  // left: auto;
  // right: -150px;
  top: 45%;
}

// .fixed-width .el-button--mini{
//   width: auto;
// }

.el-button + .el-button{
  margin-left: 6px !important;
}

 // 提示框按钮位置修改
.el-message-box__btns>.el-button--small{
  float: right;
  margin-left: 10px;
}

.icon-query{
  background: $--color-primary !important;
  border: 1px solid $--color-primary !important;
}

.icon-green{
  background: #13ce66 !important;
  border: 1px solid #13ce66 !important;
}

.icon-red{
  background: #ea6200 !important;
  border: 1px solid #ea6200 !important;
}

// .el-icon-defined{
//   border:none !important;
//   padding: 0 5px !important;
//   background: rgba(0,0,0,0);
//   font-size: 16px;
// }

.el-table--border th{
  background: $--color-primary !important;
  color: #ffffff;
  padding: 5px 0;
  font-weight: 400;
  text-align: center;
}

.td-btn-operation{
  padding: 2px 5px !important;
  border:1px solid $--color-primary !important;
  color: $--color-primary;
}

.el-table tr:nth-child(even){
  background-color: #f5f8fa;
}

.el-table tr:nth-child(odd){
  background-color: #ffffff;
}

.el-dialog .el-table__body-wrapper,
.el-table__body-wrapper{
  overflow: auto !important;
}

.el-table--enable-row-hover .el-table__body tr:hover > td{
  background-color: #e2ecf8 !important;
}
.el-table th.is-leaf, .el-table td{
  border-bottom: 1px solid #f0f0f0;
}
.el-table--border th, .el-table--border td{
  border-right: 1px solid #f0f0f0;
}
.el-table--medium th, .el-table--medium td{
  padding: 5px 0 !important;
}
.el-table .cell{
  line-height: 24px !important;
  .choose-column{
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("../assets/images/spread.png") no-repeat center;
    text-align: right;
    vertical-align: sub;
    margin-left: 5px;
    cursor: pointer;
  }
}

.overflow-hidden{
  overflow: hidden;
}

//关闭右侧  系统布局配置
// .rightPanel{
//   display: none !important;
// }

.tree-box{
  width: 200px;
  flex-basis:200px;
  overflow: auto;
  max-width: 200px;
  min-width: 200px;
  border-right: 1px solid #dfe6ec;
  font-size: 14px;
  .type-title{
    height: 35px;
    line-height: 35px;
    border-bottom: 1px solid #dfe6ec;
    position: sticky;
    top: 0;
    background: $--color-primary;
    color: #ffffff;
    text-align: center;
    left: 0;
    z-index: 11;
    .type-title-active{
      background: $--color-primary;
    }
  }
  .type-list{
    li{
      height: 35px;
      line-height: 35px;
      padding: 0 10px;
      max-width: 200px;
      text-align: center;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      cursor: pointer;
    }
    li:hover,
    li.active{
      color: $--color-primary;
      background: #f5f8fa;
    }
  }
  .el-tree{
    .el-tree-node > .el-tree-node__children{
      overflow: inherit;
    }
    .el-tree-node[aria-disabled="true"]{
      &:focus{
        > .el-tree-node__content{
          background: none;
        }
      }
      > .el-tree-node__content{
        cursor: no-drop;
        color: #C0C4CC;
        &:hover{
          background: none;
        }
        // .el-tree-node__expand-icon.is-leaf{
        //   background: url(../assets/images/tree-node-leaf-icon.png) center no-repeat;
        // }
      }
    }
  }
}

.el-select{
  width: 100%;
}
.el-input{
  .input-prefix-text{
    display: inline-block;
    width: 20px;
    text-align: center;
  }
}

// 表格移入提示
.el-tooltip__popper.is-dark{
  max-width: 80%;
}

//滚动条样式

::-webkit-scrollbar{
  width: 8px;
  height: 8px;
  background-color: rgb(207, 217, 238);
  -webkit-transition: background-color .3s ease-in-out;
  transition: background-color .3s ease-in-out;
}
::-webkit-scrollbar:hover{
  background-color: #d1d1d1;
}
::-webkit-scrollbar-thumb{
  background-color: rgba(107, 150, 241, 0.6);
  height: 50px;
  -webkit-border-radius:5px;
  border-radius:5px;
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
  -webkit-transition: background-color .3s ease-in-out;
  transition: background-color .3s ease-in-out;
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active{
  background-color:rgba(107, 150, 241, 0.8);
  border-right: 1px solid #f1f1f1;
  border-left: 1px solid #f1f1f1;
}
::-webkit-scrollbar-track{
  background-color:#fff;
}
::-webkit-scrollbar-track:hover{
  background-color:#fff;
}
// backup
.backup-caoz{
  margin-top: -31px;
  background: #fff;
  .backup-backupsButton{
    padding: 7px 15px;
    border: 0;
    border-radius: 3px;
    background: #a5aec3;
    color: #fff;
  }
  .el-button--primary {
    color: #FFFFFF;
    background-color: #409EFF;
    border-color: #409EFF;
  }
  .backup-caozA{
    .backup-caozCent{
      text-align: center;
      margin-top: 50px
    }
  }
  .el-transfer{
    text-align: center;
    padding: 30px 0
  }
  .el-transfer-panel .el-transfer-panel__header{
    text-align: left
  }

  .backup-caozUl{
    padding: 15px;
    overflow: hidden;
    .backup-caozLi{
        margin-bottom: 10px;
        overflow: hidden;
        float: left;
        width: 50%;
        .backup-caozP1{
          text-align: right;
          float: left;
          width: 110px;
          padding: 0 10px;
          line-height: 32px;
          color: #000;
          font-size: 14px;
          white-space: nowrap;
          text-overflow: ellipsis
        }
        .el-button--medium{
          padding: 9px 20px;
          margin-left: 7px;
        }
        .backup-caozLeft{
          float: left;
          width: 220px;
        }
        .el-form-item{
          margin-bottom: 0
        }
        .el-radio{
          height: 33px;
          line-height: 33px;
        }
        .el-input__inner{
          height: 33px;
          line-height: 33px;
        }
        .backup-caozInput{
          float: left;
          width: 220px;
        }
    }
  }
}
.el-icon-start{
  display: block;
  width: 16px;
  height: 16px;
  background: url(../assets/images/zant.png);
  background-size:100% 100%;
  position: relative;
  top: 2px;
}
.el-icon-suspend{
  display: block;
  width: 16px;
  height: 16px;
  background: url(../assets/images/tingz.png);
  background-size:100% 100%;
  position: relative;
  top: 2px;
}
